package com.googlecode.linkmein.utils;

import com.googlecode.linkmein.domain.Album;
import com.googlecode.linkmein.domain.Albums;
import com.google.gdata.data.photos.AlbumEntry;
import com.google.gdata.data.photos.UserFeed;
import com.google.gdata.client.photos.PicasawebService;
import com.google.gdata.util.ServiceException;
import groovy.lang.GString;

import java.net.URL;
import java.io.IOException;

public class Util {
    public static boolean isEmpty(String str) {
        return str == null || str.trim().length() == 0;
    }

    public static String defaultString(String a) {
        if (a == null || a.trim() == "") {
            return "";
        }
        return a.trim().replaceAll("\n", "");
    }

}
